package pro.survey.analyzer.data;
// Generated 2013-05-11 13:57:43 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Lectors generated by hbm2java
 */
@Entity
@Table(name="lectors")
public class Lectors  implements java.io.Serializable {


     private Integer id;
     private Imports imports;
     private String name;
     private String surname;
     private String lang;
     private Date created;
     private Date modified;
     private Set<Answers> answerses = new HashSet<Answers>(0);

    public Lectors() {
        this.created = new Date();
    }

	
    public Lectors(Imports imports, String name, String surname, String lang, Date created) {
        this.imports = imports;
        this.name = name;
        this.surname = surname;
        this.lang = lang;
        this.created = created;
    }
    public Lectors(Imports imports, String name, String surname, String lang, Date created, Date modified, Set<Answers> answerses) {
       this.imports = imports;
       this.name = name;
       this.surname = surname;
       this.lang = lang;
       this.created = created;
       this.modified = modified;
       this.answerses = answerses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="import_id", nullable=false)
    public Imports getImports() {
        return this.imports;
    }
    
    public void setImports(Imports imports) {
        this.imports = imports;
    }
    
    @Column(name="name", nullable=false, length=100)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="surname", nullable=false, length=100)
    public String getSurname() {
        return this.surname;
    }
    
    public void setSurname(String surname) {
        this.surname = surname;
    }
    
    @Column(name="lang", nullable=false, length=100)
    public String getLang() {
        return this.lang;
    }
    
    public void setLang(String lang) {
        this.lang = lang;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="created", nullable=false, length=19)
    public Date getCreated() {
        return this.created;
    }
    
    public void setCreated(Date created) {
        this.created = created;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="modified", length=19)
    public Date getModified() {
        return this.modified;
    }
    
    public void setModified(Date modified) {
        this.modified = modified;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="lectors")
    public Set<Answers> getAnswerses() {
        return this.answerses;
    }
    
    public void setAnswerses(Set<Answers> answerses) {
        this.answerses = answerses;
    }




}


